import request from '@/utils/request'

// 查询用户答题列表
export function listUserAnswers(query) {
  return request({
    url: '/exam/userAnswers/list',
    method: 'get',
    params: query
  })
}

// 查询用户答题详细
export function getUserAnswers(id) {
  return request({
    url: '/exam/userAnswers/' + id,
    method: 'get'
  })
}

// 新增用户答题
export function addUserAnswers(data) {
  return request({
    url: '/exam/userAnswers',
    method: 'post',
    data: data
  })
}

// 修改用户答题
export function updateUserAnswers(data) {
  return request({
    url: '/exam/userAnswers',
    method: 'put',
    data: data
  })
}

// 删除用户答题
export function delUserAnswers(id) {
  return request({
    url: '/exam/userAnswers/' + id,
    method: 'delete'
  })
}
